import http from '@/utils/http'
/**
 * 获取用户自己的信息
 */
export const getUserInfo = () => {
  return http({
    method: 'GET',
    url: '/app/v1_0/user'
  })
}
/**
 * 获取用户个人资料
 */
export const getUserDatum = (userId) => {
  return http({
    method: 'GET',
    url: '/app/v1_0/user/profile',
    params: {
      target: userId
    }
  })
}
/**
 * 编辑头像
 */
export const editPhpto = (data) => {
  return http({
    method: 'PATCH',
    url: '/app/v1_0/user/photo',
    data
  })
}
